class OrderItem::SpotsOrdered < OrderItem
  
  after_create do |order_item|    
    # feed
    order_item.update_attribute :feed, Feed::OrderItemCreatedAndSpotsOrdered.create!(
      :order_id => order_item.order_id,
      :order_item_id => order_item.id  
    )
  end
  
  scope :being_order_mades, where('ordered_count > order_made_count')
end